Skip to content

Add a check in JavaHttpClientTransport to verify if we can add the host header#764

Merged
adwsingh merged 1 commit into
mainfrom
adwsingh/host-header-allow-verification
Jun 10, 2025
Merged

Add a check in JavaHttpClientTransport to verify if we can add the host header#764
adwsingh merged 1 commit into
mainfrom
adwsingh/host-header-allow-verification

Conversation

@adwsingh

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

There is a race in JavaHttpClientTransport where if the jdk.internal.net.http.common.Utils class is loaded and initialized before JavaHttpClientTransport then we don't have an opportunity to influence the restricted headers via any system property. This PR adds a guard to detect it and fail fast.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@adwsingh
adwsingh force-pushed the adwsingh/host-header-allow-verification branch from 06b6cfe to f407ced Compare June 10, 2025 23:19
@adwsingh
adwsingh merged commit 0f29501 into main Jun 10, 2025
2 checks passed
@adwsingh
adwsingh deleted the adwsingh/host-header-allow-verification branch June 10, 2025 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants